package com.quanyan.stadium.enums;

public enum ErrorEnum implements BaseEnum {


    /**
     * 基本错误信息
     *
     * */

    ERROR_PERSSION(-1,"FAILED","操作失败","没有权限"),
    ERROR_PARAM(-2,"FAILED","操作失败","参数不合法"),
    ERROR_ORDER_LIMIT_OUT(-5,"FAILED","订单问题","报名人数超过限制"),
    ERROR_DB(-2,"FAILED","数据库问题","数据库更新失败"),



    /**
     * 邀请用户报错
     *
     * */
    ERROR_USER_NOT_EXIST(-1001,"FAILED","用户不存在","用户不存在"),
    ERROR_USER_NOT_CLUB_MEM(-1002,"FAILED","本场比赛对俱乐部内开放，该用户非俱乐部成员","本场比赛对俱乐部内开放，该用户非俱乐部成员"),
    ERROR_USER_DOUBLE_JOIN(-1003,"FAILED","用户已报名该场比赛，请选择其他搭档","用户已报名该场比赛，请选择其他搭档");


    private int id;

    private String code;

    private String name;

    private String label;

    ErrorEnum(int id, String code, String name, String label) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.label = label;
    }

    public int getId() {
        return this.id;
    }

    public String getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public String getLabel() {
        return this.label;
    }
}
